package dao;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import winkyle.woodenfish.model.po.MessageInfo;

import java.util.List;

/**
 * @author winkyle
 * @date 2018/06/22
 * @description 消息信息数据访问接口层
 */
public interface MessageInfoDao  extends JpaRepository<MessageInfo, String>,JpaSpecificationExecutor<MessageInfo>{
	/**
	 * @description 根据用户Id分页获取消息信息列表
	 * @param userId 用户Id
	 * @return 消息信息列表
	 */
	List<MessageInfo> findByUserId(String userId,Pageable pageable);
}
